home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / mac / ch16 / 16fig04.wrl < prev    next >
Text File  |  1996-09-23  |  893b  |  39 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright [1997] By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Shape {
  6.     appearance Appearance {
  7.         material Material { }
  8.     }
  9.     geometry IndexedFaceSet {
  10.         coord Coordinate {
  11.             point [
  12.             # Around the front of the book
  13.                 -0.095 -0.115 0.04,   0.095 -0.115 0.04,
  14.                  0.095  0.115 0.04,  -0.095  0.115 0.04,
  15.             # Around the back of the book
  16.                 -0.095 -0.115 0.00,   0.095 -0.115 0.00,
  17.                  0.095  0.115 0.00,  -0.095  0.115 0.00
  18.             ]
  19.         }
  20.         coordIndex [
  21.         # Cover front, back, and spine cover (brown)
  22.             0, 1, 2, 3, -1,  7, 6, 5, 4, -1,  0, 3, 7, 4, -1,
  23.         # Paper bottom, right, and top edges (white)
  24.             0, 4, 5, 1, -1,  1, 5, 6, 2, -1,  2, 6, 7, 3
  25.         ]
  26.         colorPerVertex FALSE
  27.         color Color {
  28.             color [
  29.                 0.7 0.5 0.2, # cover
  30.                 0.8 0.8 0.8  # paper edges
  31.             ]
  32.         }
  33.         colorIndex [
  34.             0, 0, 0, # cover
  35.             1, 1, 1  # paper edges
  36.         ]
  37.     }
  38. }
  39.